/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework.view;

import framework.model.Factory;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author ThanhNguyen
 */
public class TopPanel extends JPanel {

    public TopPanel() {
        setLayout(null);
        setBounds(0, 0, 575, 50);
        Factory factory = Factory.getInstance();

        JButton btnAddPersonalAccount = new ActionButton(factory.createAddPersonalAccountController());
        btnAddPersonalAccount.setText("Add Personal Account");
        add(btnAddPersonalAccount);
        btnAddPersonalAccount.setBounds(24, 8, 170, 33);

        JButton btnAddCompanyAccount = new ActionButton(factory.createAddCompanyAccountController());
        btnAddCompanyAccount.setText("Add Company Account");
        add(btnAddCompanyAccount);
        btnAddCompanyAccount.setBounds(240, 8, 170, 33);
    }
}